package com.lanxiao.cloud.common.core.bus.listeners;

import com.lanxiao.cloud.common.core.bus.event.DomainEvent;
/**
 * @author ：qiaoliang
 * @date ：2021-09-09
 */
public interface DomainEventPublisher {
  String identify();

  void register(Object listener);

  void publish(DomainEvent event);

  void asyncPublish(DomainEvent event);

}
